package com.kx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kx.bean.Toll;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TollMapper extends BaseMapper<Toll> {
    int deleteByPrimaryKey(Integer fid);

    int insertToll(Toll record);

    int insertSelective(Toll record);

    Toll selectByPrimaryKey(Integer fid);

    @Select("SELECT distinct cid,pid,into_parking_time,out_parking_time,total_cost,remark from toll where remark = '未支付';")
    List<Toll> findBlackToll();

    int updateByPrimaryKeySelective(Toll record);

    int updateByPrimaryKey(Toll record);
}